package com.jr.controller;

import com.jr.entry.User;
import com.jr.service.UserService;
import com.jr.util.ResultObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/")
public class UserController {
    @Autowired
    private UserService userService;
    @Autowired
    private ResultObject result;
    @RequestMapping("login")
    public ResultObject findAll(User user) {
        return result;
    }
    @RequestMapping("add")
    public ResultObject addUser(User user){
        return result;
    }
}
